package org.zjx.data.screen;

import org.zjx.command.entity.screen.*;
import org.zjx.command.enums.TeleportType;
import org.zjx.data.BaseSceneBuilder;
import org.zjx.data.SceneJsonSerializer;

import java.awt.*;
import java.io.IOException;
import java.nio.charset.StandardCharsets;
import java.nio.file.Files;
import java.nio.file.Paths;

public class NvErCunSceneBuilder extends BaseSceneBuilder {

    @Override
    protected String getSceneName() {
        return "女儿村";
    }

    @Override
    protected Dimension getSceneSize() {
        return new Dimension(156, 143);
    }

    @Override
    protected void addMonsters() {

    }

    @Override
    protected void addNpcs() {
        addNpc("传送女使", new Point(21, 125));
        addNpc("柳飞絮", new Point(23, 55));
        addNpc("翠花", new Point(75, 45));
        addNpc("栗栗娘", new Point(105, 86));
        addNpc("绿儿", new Point(82, 70));
    }

    @Override
    protected void addRooms() {
        Room cunZhangJia = createRoom("女儿村村长家", new Dimension(57, 38));
        addNpcToRoom(cunZhangJia, "孙婆婆", new Point(26, 17));
        rooms.add(cunZhangJia);
    }

    @Override
    protected void addTeleports() {
        addSceneTeleport(new Point(119, 12), "傲来国", new Point(12, 141), new Point(123, 9));
        addSceneTeleport(new Point(17, 123), "女儿村村长家", new Point(35, 13), new Point(13, 123));
        addRoomTeleport(new Point(17, 123), "女儿村村长家", new Point(35, 13), new Point(13, 123));
    }

    public static void main(String[] args) {
        new NvErCunSceneBuilder().execute("nvercun_scene.json", "女儿村");
    }
}